<script>
	export default {
		globalData: {
			shopid: '',//店铺id
			token:'',//微信token
			user:"",//微信信息
			upimgurl:'http://192.168.2.115',
		},
		onLaunch: function() {
			var that = this
			uni.getStorage({
			    key: 'token',
			    success: function (res) {
			        console.log(res.data);
					that.globalData.token = res.data
			    },
				fail:function(e){
					
				}
			});
			uni.getStorage({
			    key: 'user',
			    success: function (res) {
			        console.log(res.data);
					that.globalData.user = res.data
			    },
				fail:function(e){
					
				}
			});
			// var keys = uni.getStorageInfoSync().keys
			
			// console.log('App Show',keys)
			// for(var i = 0;i<keys.length;i++){
			// 	if(keys[i] == 'token' ){
			// 		console.log(keys[i])
			// 	}
				
			// }
		},
		onShow: function() {
			
			
			
		},
		// onHide: function() {
		// 	console.log('App Hide')
		// }
		// onReachBottom: function() { //触底开始下一页
		// 	console.log('12313213213')
		// },
	}
</script>

<style lang="scss">
	@import "uview-ui/index.scss";
	/*每个页面公共css */
	@import "colorui/main.css";
	@import "colorui/icon.css";
	// 引入COOL-UNI ui库样式
	@import "cl-uni/index.scss";

	page {
		width: 100%;
		height: 100%;
		background-color: #ffffff;
	}
</style>
